package com.xm.hiber;


import com.xm.hiber.dao.InstructorDao;
import com.xm.hiber.entity.Instructor;
import com.xm.hiber.entity.InstructorDetail;


public class App {
    public static void main(String[] args) {

        Instructor instructor = new Instructor("Madhu", "Patel", "madhu@luv2code.com");

        InstructorDetail instructorDetail = new InstructorDetail("http://www.youtube.com", "Guitar");

        // associate the objects
        instructor.setInstructorDetail(instructorDetail);

        InstructorDao instructorDao = new InstructorDao();
        instructorDao.saveInstructor(instructor);
    }
}
